<?php
    require_once ("../../conf/glob_conf.php"); 
    include_once("./lib/nh_member.php");
    include_once("./lib/member_rights.php");
    
    $mem = NH_Member::getInstance();
    $mem->init();
  
  if (!$mem->isLoggedIn()){
      echo "not login";
      exit;
  }
  if(!$mem->checkRight(BOARD_VIEW)) {
    echo 'Sorry, you have not the right.';
    exit;
}
//do somethig here
echo "you have the right";
?>
